import request from '@/utils/request'

// 查询外部输入人员列表
export function listCitizen(query) {
  return request({
    url: '/eim/citizen/list',
    method: 'get',
    params: query
  })
}

// 查询外部输入人员详细
export function getCitizen(pid) {
  return request({
    url: '/eim/citizen/' + pid,
    method: 'get'
  })
}

// 新增外部输入人员
export function addCitizen(data) {
  return request({
    url: '/eim/citizen',
    method: 'post',
    data: data
  })
}

// 修改外部输入人员
export function updateCitizen(data) {
  return request({
    url: '/eim/citizen',
    method: 'put',
    data: data
  })
}

// 删除外部输入人员
export function delCitizen(pid) {
  return request({
    url: '/eim/citizen/' + pid,
    method: 'delete'
  })
}
